@echo off
call base.cmd
@echo Creating tables...

@rem For each .sql file in .\Tables
FOR /F "usebackq delims==" %%i IN (`dir /B .\Tables\*.sql`) DO (	
    echo Executing file .\Tables\%%i
    call execFileQuery.cmd .\Tables\%%i
    echo Done.
    echo.
)

@echo Creating references...
call execFileQuery.cmd .\References\CreateReferences.sql
@echo Done.